#include "mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    setFixedSize(800,600);

    messages = new QTextEdit(this);
    messages->setGeometry(20,20,760,560);
    messages->setReadOnly(true);

    httpServer = new HttpServer;
    connect(httpServer,SIGNAL(message(QString)),messages,SLOT(insertPlainText(QString)));
}

MainWindow::~MainWindow()
{
    delete messages;
    delete httpServer;
}
